package com.example.shixunandjavagotoyangchen.Activity;

import android.widget.Toast;

import com.example.modelviewpresenter.Presenter.BasterPresenter;
import com.example.shixunandjavagotoyangchen.Sunshine.App.BasterApp;

import java.util.List;

public class FoodPresenter extends BasterPresenter<FoodContion.aainview,FoodContion.aainmodel> {


    public FoodPresenter(FoodContion.aainview iew, FoodContion.aainmodel asd) {
        super(iew, asd);
    }

    public void doinseelt(){
        asd.getinmodel(new FoodCallback() {
            @Override
            public void sueeofers(List<FoodJavaBean.DataBean> dataBeans) {
                iew.getinview(dataBeans);
                Toast.makeText(BasterApp.context,"读取数据成功",Toast.LENGTH_SHORT).show();
            }

        });
    }
}
